package com.patrol.logisticsmanage;

import android.app.Application;

import com.alibaba.android.arouter.launcher.ARouter;
import com.facebook.drawee.backends.pipeline.Fresco;
import com.patrol.logisticsmanage.ui.base.ImageLoader;
import com.previewlibrary.ZoomMediaLoader;
import com.tencent.bugly.Bugly;
import com.tencent.mmkv.MMKV;

import butterknife.ButterKnife;
import cn.jpush.android.api.JPushInterface;

public class MyApplication extends Application {

    public static  MyApplication myApplication;
    @Override
    public void onCreate() {
        super.onCreate();
        myApplication = this;
        ARouter.openLog();
        ARouter.init(myApplication);
        ButterKnife.setDebug(true);
        MMKV.initialize(this);
        Fresco.initialize(this);
        ZoomMediaLoader.getInstance().init(new ImageLoader());
        JPushInterface.setDebugMode(true);    // 设置开启日志,发布时请关闭日志
        JPushInterface.init(this);            // 初始化 JPush
        Bugly.init(getApplicationContext(), "11fa7cf39d", false);
    }

}
